﻿namespace net.zxteam.ZXLexer.Rules.Internal
{
	using net.zxteam.ZXLexer.Tokens;
	using System;
	using System.Diagnostics.Contracts;

	internal sealed class AstRule : IAstRule
	{
		public IToken Accept(IRuleVisitor visitor)
		{
			Contract.Requires(visitor != null);

			return visitor.VisitAstRule(this);
		}

		public IInnerRule InnerRule { get; set; }
	}
}
